export default {
    set: (name:string, data: any ) =>{
        localStorage.setItem(name, JSON.stringify(data))
    },
    get: (name:string) =>{
        const val = localStorage.getItem(name)
        return val ? JSON.parse(val) : null
    },
    remove: (name:string) =>{
        localStorage.removeItem(name)
    }
}

